#pragma once

#include <string>
#include <vector>
#include "db_handler.h"

namespace TakeAwayPlatform
{
    class ConsumerModule
    {
    public:
        ConsumerModule(DatabaseHandler& dbHandler);

        bool addAddress(int user_id, const std::string& address);
        bool updateAddress(int user_id, const std::string& address);
        bool deleteAddress(int user_id);
        bool viewAddresses(int user_id, std::vector<std::string>& addresses);

    private:
        DatabaseHandler& dbHandler;
    };
}